<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'changpassword.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	function check(){
		var p1=document.getElementById("p1");
		var p2=document.getElementById("p2");
		var p3=document.getElementById("p3");
		if(p1.value==""||p2.value==""||p3.value==""){
			alert("请检查是否输入完整");
			return false;
		}else if(p2.value!=p3.value){
			alert("新密码和确认密码不一致");
			return false;
		}else{
			return true;
		}
	}
	</script>

</head>

<body>

	<div style=" margin-left:350px;margin-top: 50px;">
		<label
			style="font-family: '宋体';font-weight: bold;font-size: 30px;color:#BCE2F3;">修改密码</label>
	</div>

	<div
		style="background-color:#BCE9F8;width:500px;height:150px;  margin-left: auto;margin-right: auto;margin-top: 100px;">
		<form
			action="<%=basePath %>servlet/ManagerDetailMessageServlet?id=${changpasswordid}&m=change"
			method="post" onsubmit="return check()">
			<table>
				<tr>
					<td>原密码:</td>
					<td><input type="password" id="p1" name="password1"
						placeholder="请输入原密码" /></td>
				</tr>
				<tr>
					<td>新密码:</td>
					<td><input type="password" id="p2" name="password2"
						placeholder="请输入新密码" /></td>
				</tr>
				<tr>
					<td>确认密码:</td>
					<td><input type="password" id="p3" name="password3"
						placeholder="请输入新密码的确认密码" /></td>
				</tr>
				<tr>
					<td><input type="submit" value="确定" /></td>
					<td><input type="reset" value="重置" /></td>
				</tr>
			</table>

		</form>
	</div>
</body>
</html>


